package com.zc.commons.utils.asserts;

import com.zc.commons.lang.exception.ValidationException;

/**
 * @author zhangchunjia
 * @description 空值断言
 * @date 2022/1/4
 **/
public class NullAssert {

    /**
     * 空值校验
     *
     * @param msg
     * @param obj
     */
    public static void checkNull(String msg, Object obj) {
        if (obj == null) {
            throw new ValidationException(msg);
        }
    }


}
